ffmpeg推送rtsp交互流程 | 您所在的位置:网站首页 › ffmpeg 推送pcm › ffmpeg推送rtsp交互流程 |
ffmpeg将流用tcp rtsp方式推送到easydarwin ffmpeg.exe -i e:\media\mp4\12905527_20151009001316_r_1236038636_20151010163836_0_1236100237.mp4 -vcodec copy -acodec copy -rtsp_transport tcp -f rtsp rtsp://10.10.27.222:554/push.sdp
OPTIONS rtsp://10.10.27.222:554/push.sdp RTSP/1.0 CSeq: 1 User-Agent: Lavf57.29.100
RTSP/1.0 200 OK Server: EasyDarwin/7.2 (Build/16.1231; Platform/Linux; Release/EasyDarwin; State/Development; ) Cseq: 1 Public: DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, OPTIONS, ANNOUNCE, RECORD
ANNOUNCE rtsp://10.10.27.222:554/push.sdp RTSP/1.0 Content-Type: application/sdp CSeq: 2 User-Agent: Lavf57.29.100 Content-Length: 474
v=0 o=- 0 0 IN IP4 127.0.0.1 s=No Name c=IN IP4 10.10.27.222 t=0 0 a=tool:libavformat 57.29.100 m=video 0 RTP/AVP 96 b=AS:1500 a=rtpmap:96 MP4V-ES/90000 a=fmtp:96 profile-level-id=1; config=000001B0F5000001B5A913000001000000012000C48D8800CD1684481463 a=control:streamid=0 m=audio 0 RTP/AVP 97 b=AS:88 a=rtpmap:97 MPEG4-GENERIC/44100/2 a=fmtp:97 profile-level-id=1;mode=AAC-hbr;sizelength=13;indexlength=3;indexdeltalength=3; config=1210 a=control:streamid=1 RTSP/1.0 200 OK Server: EasyDarwin/7.2 (Build/16.1231; Platform/Linux; Release/EasyDarwin; State/Development; ) Cseq: 2
SETUP rtsp://10.10.27.222:554/push.sdp/streamid=0 RTSP/1.0 Transport: RTP/AVP/TCP;unicast;interleaved=0-1;mode=record CSeq: 3 User-Agent: Lavf57.29.100
RTSP/1.0 200 OK Server: EasyDarwin/7.2 (Build/16.1231; Platform/Linux; Release/EasyDarwin; State/Development; ) Cseq: 3 Cache-Control: no-cache Session: 2433173238369797527 Date: Tue, 21 Feb 2017 09:18:19 GMT Expires: Tue, 21 Feb 2017 09:18:19 GMT Transport: RTP/AVP/TCP;unicast;mode=record;interleaved=0-1
SETUP rtsp://10.10.27.222:554/push.sdp/streamid=1 RTSP/1.0 Transport: RTP/AVP/TCP;unicast;interleaved=2-3;mode=record CSeq: 4 User-Agent: Lavf57.29.100 Session: 2433173238369797527
RTSP/1.0 200 OK Server: EasyDarwin/7.2 (Build/16.1231; Platform/Linux; Release/EasyDarwin; State/Development; ) Cseq: 4 Session: 2433173238369797527 Cache-Control: no-cache Date: Tue, 21 Feb 2017 09:18:19 GMT Expires: Tue, 21 Feb 2017 09:18:19 GMT Transport: RTP/AVP/TCP;unicast;mode=record;interleaved=2-3
RECORD rtsp://10.10.27.222:554/push.sdp RTSP/1.0 Range: npt=0.000- CSeq: 5 User-Agent: Lavf57.29.100 Session: 2433173238369797527
RTSP/1.0 200 OK Server: EasyDarwin/7.2 (Build/16.1231; Platform/Linux; Release/EasyDarwin; State/Development; ) Cseq: 5 Session: 2433173238369797527 RTP-Info: url=rtsp://10.10.27.222:554/push.sdp/push.sdp,url=rtsp://10.10.27.222:554/push.sdp/push.sdp
接下来就是interleave+视音频数据了 |
今日新闻 |
推荐新闻 |
专题文章 |
CopyRight 2018-2019 实验室设备网 版权所有 |